import request from '@/Utils/request'

// 工单统计
export const taskReportInfo = (data) => {
  return request.get(`/api/task-service/task/taskReportInfo/${data.start}/${data.end}`)
}

// 获取订单统计中的订单量
export const getOrderNum = (data) => {
  return request.get('/api/order-service/report/orderCount', {
    params: {
      ...data
    }
  })
}

// 获取销售统计的销售额
export const getOrderSale = data => request.get('/api/order-service/report/orderAmount', {
  params: {
    ...data
  }
})

// 获取销售前几的商品
export const goodsTop = (data) => {
  return request.get(`/api/order-service/report/skuTop/${data.topValue}/${data.start}/${data.end}`)
}
